<?php
namespace app\api\validate;


class Message extends BaseValidate
{
	protected $rule = [
		'name' => 'require|chs',
		'phone' => 'require|isMobile',
		'address' => 'require',
		'message' => 'require'
	];

	protected $message = [
		'name.require' => '姓名不能为空',
		'name.chs' => '姓名必须为汉字',
		'phone.require' => '电话不能为空',
		'phone.isMobile' => '电话格式不对',
		'message.require' => '留言不能为空'
	];

}
